package com.lss.study.algorithm.niuke.T15;

import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:21
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int num = sc.nextInt();
            String string = Integer.toBinaryString(num);
            System.out.println(string.replaceAll("0", "").length());
        }
    }
}
